package interfaz;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import javax.swing.border.CompoundBorder;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import java.awt.Component;

import javax.swing.border.BevelBorder;
import java.awt.SystemColor;

import javax.swing.JDesktopPane;
import javax.swing.JFileChooser;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.JTextPane;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import java.awt.Font;
import javax.swing.JButton;



import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.SwingConstants;

public class PanelMensajeHilo extends JPanel {
	
	/**
	 * Create the panel.
	 */
	public PanelMensajeHilo() {
		
		setBackground(SystemColor.scrollbar);
		setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBackground(SystemColor.inactiveCaption);
		panel.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel.setBounds(0, 0, 686, 41);
		add(panel);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("ASUNTO:");
		lblNewLabel.setFont(new Font("Trebuchet MS", Font.BOLD, 14));
		lblNewLabel.setBounds(10, 11, 67, 14);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("New label");
		lblNewLabel_1.setBounds(76, 0, 153, 30);
		panel.add(lblNewLabel_1);
		
		JLabel lblEscribaAquiSu = new JLabel("Mensaje:");
		lblEscribaAquiSu.setBounds(156, 52, 120, 14);
		add(lblEscribaAquiSu);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel_1.setBounds(0, 41, 144, 251);
		add(panel_1);
		panel_1.setLayout(null);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBounds(10, 49, 124, 101);
		panel_1.add(panel_2);
		
		JLabel lblUsuario = new JLabel("Usuario:");
		lblUsuario.setBounds(10, 11, 46, 14);
		panel_1.add(lblUsuario);
		
		JButton btnCitarMensaje = new JButton("Citar Mensaje");
		btnCitarMensaje.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				FrameMensaje frameMensaje= new FrameMensaje();
			}
		});
		btnCitarMensaje.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnCitarMensaje.setBounds(572, 258, 104, 23);
		add(btnCitarMensaje);
		
		JTextPane txtpnOqoeoqnfonaogangnangaAergRa = new JTextPane();
		txtpnOqoeoqnfonaogangnangaAergRa.setText("oqoeoqnfonaogangnanga\r\n\r\naerg\r\nra\r\nta\r\nr\r\na\r\ne\r\na\r\ngrayayrasr\r\ndarty\r\nqh\r\nra\r\ngh\r\n");
		txtpnOqoeoqnfonaogangnangaAergRa.setBounds(166, 83, 424, 164);
		add(txtpnOqoeoqnfonaogangnangaAergRa);

	}
}
